# Disponivel no pacote de programas como: graph1.py
import networkx as NX

G = NX.Graph()
G.add_edges_from([('W','Z'),('Z','Y'),('Y','X'),('X','Z')])
print G.nodes(), G.edges()

